.class public Lcom/burstly/lib/network/beans/cookie/CookieHolder;
.super Ljava/lang/Object;
.source "CookieHolder.java"

# interfaces
.implements Ljava/io/Serializable;
.implements Ljava/lang/Cloneable;


# static fields
.field protected static final LOG:Lcom/burstly/lib/util/LoggerExt; = null

.field protected static final TAG:Ljava/lang/String; = "CookieHolder"

.field private static final serialVersionUID:J = -0x5f47cee8d2f758eaL


# instance fields
.field private transient domain:Ljava/lang/String;

.field private transient expires:Ljava/lang/String;

.field private maxage:Ljava/lang/Integer;

.field private name:Ljava/lang/String;

.field private transient path:Ljava/lang/String;

.field private value:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 33
    invoke-static {}, Lcom/burstly/lib/util/LoggerExt;->getInstance()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/network/beans/cookie/CookieHolder;->LOG:Lcom/burstly/lib/util/LoggerExt;

    return-void
.end method

.method public constructor <init>()V
    .locals 0

    .prologue
    .line 78
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 79
    return-void
.end method

.method public constructor <init>(Ljava/lang/String;Ljava/lang/String;)V
    .locals 0
    .parameter "name"
    .parameter "value"

    .prologue
    .line 87
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 88
    iput-object p1, p0, Lcom/burstly/lib/network/beans/cookie/CookieHolder;->name:Ljava/lang/String;

    .line 89
    iput-object p2, p0, Lcom/burstly/lib/network/beans/cookie/CookieHolder;->value:Ljava/lang/String;

    .line 90
    return-void
.end method

.method public constructor <init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;)V
    .locals 0
    .parameter "name"
    .parameter "value"
    .parameter "maxage"

    .prologue
    .line 100
    invoke-direct {p0, p1, p2}, Lcom/burstly/lib/network/beans/cookie/CookieHolder;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 101
    iput-object p3, p0, Lcom/burstly/lib/network/beans/cookie/CookieHolder;->maxage:Ljava/lang/Integer;

    .line 102
    return-void
.end method

.method public constructor <init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;)V
    .locals 0
    .parameter "name"
    .parameter "value"
    .parameter "domain"
    .parameter "expires"
    .parameter "maxage"
    .parameter "path"

    .prologue
    .line 116
    invoke-direct {p0, p1, p2, p5}, Lcom/burstly/lib/network/beans/cookie/CookieHolder;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;)V

    .line 117
    iput-object p3, p0, Lcom/burstly/lib/network/beans/cookie/CookieHolder;->domain:Ljava/lang/String;

    .line 118
    iput-object p4, p0, Lcom/burstly/lib/network/beans/cookie/CookieHolder;->expires:Ljava/lang/String;

    .line 119
    iput-object p6, p0, Lcom/burstly/lib/network/beans/cookie/CookieHolder;->path:Ljava/lang/String;

    .line 120
    return-void
.end method


# virtual methods
.method public clone()Lcom/burstly/lib/network/beans/cookie/CookieHolder;
    .locals 3

    .prologue
    .line 280
    :try_start_0
    invoke-super {p0}, Ljava/lang/Object;->clone()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/burstly/lib/network/beans/cookie/CookieHolder;
    :try_end_0
    .catch Ljava/lang/CloneNotSupportedException; {:try_start_0 .. :try_end_0} :catch_0

    .line 284
    :goto_0
    return-object v1

    .line 282
    :catch_0
    move-exception v0

    .line 283
    .local v0, e:Ljava/lang/CloneNotSupportedException;
    sget-object v1, Lcom/burstly/lib/network/beans/cookie/CookieHolder;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "CookieHolder"

    invoke-virtual {v1, v2, v0}, Lcom/burstly/lib/util/LoggerExt;->logThrowable(Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 284
    const/4 v1, 0x0

    goto :goto_0
.end method

.method public bridge synthetic clone()Ljava/lang/Object;
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/CloneNotSupportedException;
        }
    .end annotation

    .prologue
    .line 28
    invoke-virtual {p0}, Lcom/burstly/lib/network/beans/cookie/CookieHolder;->clone()Lcom/burstly/lib/network/beans/cookie/CookieHolder;

    move-result-object v0

    return-object v0
.end method

.method public equals(Ljava/lang/Object;)Z
    .locals 5
    .parameter "obj"

    .prologue
    const/4 v1, 0x1

    const/4 v2, 0x0

    .line 248
    if-ne p0, p1, :cond_1

    .line 265
    :cond_0
    :goto_0
    return v1

    .line 251
    :cond_1
    if-nez p1, :cond_2

    move v1, v2

    .line 252
    goto :goto_0

    .line 254
    :cond_2
    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v3

    invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v4

    if-eq v3, v4, :cond_3

    move v1, v2

    .line 255
    goto :goto_0

    :cond_3
    move-object v0, p1

    .line 257
    check-cast v0, Lcom/burstly/lib/network/beans/cookie/CookieHolder;

    .line 258
    .local v0, other:Lcom/burstly/lib/network/beans/cookie/CookieHolder;
    iget-object v3, p0, Lcom/burstly/lib/network/beans/cookie/CookieHolder;->name:Ljava/lang/String;

    if-nez v3, :cond_4

    .line 259
    iget-object v3, v0, Lcom/burstly/lib/network/beans/cookie/CookieHolder;->name:Ljava/lang/String;

    if-eqz v3, :cond_0

    move v1, v2

    .line 260
    goto :goto_0

    .line 262
    :cond_4
    iget-object v3, p0, Lcom/burstly/lib/network/beans/cookie/CookieHolder;->name:Ljava/lang/String;

    iget-object v4, v0, Lcom/burstly/lib/network/beans/cookie/CookieHolder;->name:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_0

    move v1, v2

    .line 263
    goto :goto_0
.end method

.method public getDomain()Ljava/lang/String;
    .locals 1

    .prologue
    .line 164
    iget-object v0, p0, Lcom/burstly/lib/network/beans/cookie/CookieHolder;->domain:Ljava/lang/String;

    return-object v0
.end method

.method public getExpires()Ljava/lang/String;
    .locals 1

    .prologue
    .line 182
    iget-object v0, p0, Lcom/burstly/lib/network/beans/cookie/CookieHolder;->expires:Ljava/lang/String;

    return-object v0
.end method

.method public getMaxage()Ljava/lang/Integer;
    .locals 1

    .prologue
    .line 200
    iget-object v0, p0, Lcom/burstly/lib/network/beans/cookie/CookieHolder;->maxage:Ljava/lang/Integer;

    return-object v0
.end method

.method public getName()Ljava/lang/String;
    .locals 1

    .prologue
    .line 128
    iget-object v0, p0, Lcom/burstly/lib/network/beans/cookie/CookieHolder;->name:Ljava/lang/String;

    return-object v0
.end method

.method public getPath()Ljava/lang/String;
    .locals 1

    .prologue
    .line 218
    iget-object v0, p0, Lcom/burstly/lib/network/beans/cookie/CookieHolder;->path:Ljava/lang/String;

    return-object v0
.end method

.method public getValue()Ljava/lang/String;
    .locals 1

    .prologue
    .line 146
    iget-object v0, p0, Lcom/burstly/lib/network/beans/cookie/CookieHolder;->value:Ljava/lang/String;

    return-object v0
.end method

.method public hashCode()I
    .locals 3

    .prologue
    .line 236
    const/16 v0, 0x1f

    .line 237
    .local v0, prime:I
    const/4 v1, 0x1

    .line 238
    .local v1, result:I
    iget-object v2, p0, Lcom/burstly/lib/network/beans/cookie/CookieHolder;->name:Ljava/lang/String;

    if-nez v2, :cond_0

    const/4 v2, 0x0

    :goto_0
    add-int/lit8 v1, v2, 0x1f

    .line 239
    return v1

    .line 238
    :cond_0
    iget-object v2, p0, Lcom/burstly/lib/network/beans/cookie/CookieHolder;->name:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->hashCode()I

    move-result v2

    goto :goto_0
.end method

.method public setDomain(Ljava/lang/String;)V
    .locals 0
    .parameter "domain"

    .prologue
    .line 173
    iput-object p1, p0, Lcom/burstly/lib/network/beans/cookie/CookieHolder;->domain:Ljava/lang/String;

    .line 174
    return-void
.end method

.method public setExpires(Ljava/lang/String;)V
    .locals 0
    .parameter "expires"

    .prologue
    .line 191
    iput-object p1, p0, Lcom/burstly/lib/network/beans/cookie/CookieHolder;->expires:Ljava/lang/String;

    .line 192
    return-void
.end method

.method public setMaxage(Ljava/lang/Integer;)V
    .locals 0
    .parameter "maxage"

    .prologue
    .line 209
    iput-object p1, p0, Lcom/burstly/lib/network/beans/cookie/CookieHolder;->maxage:Ljava/lang/Integer;

    .line 210
    return-void
.end method

.method public setName(Ljava/lang/String;)V
    .locals 0
    .parameter "name"

    .prologue
    .line 137
    iput-object p1, p0, Lcom/burstly/lib/network/beans/cookie/CookieHolder;->name:Ljava/lang/String;

    .line 138
    return-void
.end method

.method public setPath(Ljava/lang/String;)V
    .locals 0
    .parameter "path"

    .prologue
    .line 227
    iput-object p1, p0, Lcom/burstly/lib/network/beans/cookie/CookieHolder;->path:Ljava/lang/String;

    .line 228
    return-void
.end method

.method public setValue(Ljava/lang/String;)V
    .locals 0
    .parameter "value"

    .prologue
    .line 155
    iput-object p1, p0, Lcom/burstly/lib/network/beans/cookie/CookieHolder;->value:Ljava/lang/String;

    .line 156
    return-void
.end method

.method public toString()Ljava/lang/String;
    .locals 4

    .prologue
    .line 274
    const-string v0, "CookieHolder [name={0}, value={1}, maxage={2}]"

    const/4 v1, 0x3

    new-array v1, v1, [Ljava/lang/Object;

    const/4 v2, 0x0

    iget-object v3, p0, Lcom/burstly/lib/network/beans/cookie/CookieHolder;->name:Ljava/lang/String;

    aput-object v3, v1, v2

    const/4 v2, 0x1

    iget-object v3, p0, Lcom/burstly/lib/network/beans/cookie/CookieHolder;->value:Ljava/lang/String;

    aput-object v3, v1, v2

    const/4 v2, 0x2

    iget-object v3, p0, Lcom/burstly/lib/network/beans/cookie/CookieHolder;->maxage:Ljava/lang/Integer;

    aput-object v3, v1, v2

    invoke-static {v0, v1}, Ljava/text/MessageFormat;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
